import 'package:json_annotation/json_annotation.dart';

part 'InboxMessage.g.dart';

@JsonSerializable()
class InboxMessage {
  int? id;

  int? conversationId;

  int? sourceUserId;

  int? targetUserId;

  int? messageType;

  String? message;

  DateTime? sendTime;

  int? sendStatus;

  InboxMessage();

  static InboxMessage fromJson(Map<String, dynamic> json) =>
      _$InboxMessageFromJson(json);

  Map<String, dynamic> toJson() => _$InboxMessageToJson(this);

  @override
  String toString() {
    return 'InboxMessage{id: $id, conversationId: $conversationId, sourceUserId: $sourceUserId, targetUserId: $targetUserId, messageType: $messageType, message: $message, sendTime: $sendTime, sendStatus: $sendStatus}';
  }
}
